home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_HDF.idb / usr / freeware / include / hdf / dfgr.h.z / dfgr.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  3.2 KB  |  74 lines

  1. /****************************************************************************
  2.  * NCSA HDF                                                                 *
  3.  * Software Development Group                                               *
  4.  * National Center for Supercomputing Applications                          *
  5.  * University of Illinois at Urbana-Champaign                               *
  6.  * 605 E. Springfield, Champaign IL 61820                                   *
  7.  *                                                                          *
  8.  * For conditions of distribution and use, see the accompanying             *
  9.  * hdf/COPYING file.                                                        *
  10.  *                                                                          *
  11.  ****************************************************************************/
  12.  
  13. /* $Id: dfgr.h,v 1.12 1994/06/29 13:04:12 koziol Exp $ */
  14.  
  15. /*-----------------------------------------------------------------------------
  16.  * File:    dfgr.h
  17.  * Purpose: header file for the Raster Image set
  18.  * Invokes: df.h
  19.  * Contents:
  20.  *  Structure definitions: DFGRdr, DFGRrig
  21.  * Remarks: This is included with user programs which use general raster
  22.  *---------------------------------------------------------------------------*/
  23.  
  24. #ifndef DFGR_H  /* avoid re-inclusion */
  25. #define DFGR_H
  26.  
  27. /* description record: used to describe image data, palette data etc. */
  28. typedef struct
  29.   {
  30.       intn        ncomponents;  /* number of components */
  31.       intn        interlace;    /* data ordering: chunky / planar etc */
  32.       int32       xdim;         /* X- dimension of data */
  33.       int32       ydim;         /* Y- dimensionsof data */
  34.       DFdi        nt;           /* number type of data */
  35.       DFdi        compr;        /* compression */
  36.       /* ### Note: compression is currently uniquely described with a tag.
  37.          No data is attached to this tag/ref.  But this capability is
  38.          provided for future expansion, when this tag/ref might point to
  39.          some data needed for decompression, such as the actual encodings */
  40.   }
  41. DFGRdr;
  42.  
  43. /* structure to hold RIG info */
  44. typedef struct
  45.   {
  46.       char       *cf;           /* color format */
  47.       int32       xpos;         /* X position of image on screen */
  48.       int32       ypos;         /* Y position of image on screen */
  49.       float32     aspectratio;  /* ratio of pixel height to width */
  50.       float32     ccngamma;     /* gamma color correction parameter */
  51.       float32     ccnred[3];    /* red color correction parameter */
  52.       float32     ccngrren[3];  /* green color correction parameter */
  53.       float32     ccnblue[3];   /* blue color correction parameter */
  54.       float32     ccnwhite[3];  /* white color correction parameter */
  55.       DFdi        data[3];      /* image/lut/mattechannel */
  56.       DFGRdr      datadesc[3];  /* description of image/lut/mattechannel */
  57.   }
  58. DFGRrig;
  59.  
  60. #if defined c_plusplus || defined __cplusplus
  61. extern      "C"
  62. {
  63. #endif                          /* c_plusplus || __cplusplus */
  64.  
  65. /* Library-developer functions */
  66.     extern int32 DFGRIopen
  67.                 (const char *filename, int acc_mode);
  68.  
  69. #if defined c_plusplus || defined __cplusplus
  70. }
  71. #endif                          /* c_plusplus || __cplusplus */
  72.  
  73. #endif                          /* DFGR_H */
  74.